import { defineComponent } from 'vue';
import AppCompoentBase from '/@/shared/component-base/app-component-base';
import GLayout from '/@/shared/components/g-layout/index.vue';
import DemoModal from './components/demo-moal.vue';
export default defineComponent({
  components: { GLayout, DemoModal },
  mixins: [AppCompoentBase],
  data() {
    return {};
  },
  mounted() {
    this.init();
  },
  methods: {
    init() {},
    handleOpenModalClick() {
      this.modalHelper.create(DemoModal).subscribe((res: any) => {
        if (res) {
        }
      });
    },
    handleOpenModal2Click() {
      this.modalHelper.create(DemoModal, { pageDataList: [1, 2, 3] }).subscribe((res: any) => {
        if (res) {
        }
      });
    },
  },
});
